/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package isen.database;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;



/**
 *
 * @author isen
 */

@XmlRootElement(name="sensors")
public class SensorList {
    private int count;
    private List<Sensor> sensors;

    public SensorList() {
    }

    public SensorList(List<Sensor> sensors) {
        this.sensors = sensors;
        this.count = sensors.size();
    }
    
    public int getCount() {
	return count;
    }
    public void setCount(int count) {
	this.count = count;
    }
    
    public List<Sensor> getSensors() {
	return sensors;
    }
    public void setSensors(List<Sensor> sensors) {
	this.sensors = sensors;
    }    
}
